package com.paishen.peiniwan.frame.http.entity;

import com.paishen.peiniwan.frame.http.HttpRespEntity;


public final class Book  extends HttpRespEntity {
    public long id; // "id":"1"
    public float unit_price; // "unit_price":"99.0000"
    public User user;
    public Gift gift;

    @Override
    public boolean equals(Object o) {
        if (o instanceof Book) {
            Book other = (Book) o;
            if (id > 0 && id == other.id) {
                return true;
            }
        }
        return false;
    }
}